package org.blog.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.blog.entity.BlogUser;
import org.blog.mapper.BlogUserMapper;
import org.blog.service.BlogUserService;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class BlogUserServiceImpl extends ServiceImpl<BlogUserMapper, BlogUser> implements BlogUserService {

    @Override
    public List<BlogUser> findAll() {
        return getBaseMapper().selectList(Wrappers.<BlogUser>lambdaQuery());
    }
}
